#include<stdio.h>
#include<stdlib.h>

#define NUM 1024
char buff[NUM];

int main(int argc,char* argv[])
{
  if(argc != 2)
  {
    printf("user: ./a.out filename\n");
  }

  FILE* fp = fopen(argv[1],"r");
  int cnt = 1;
  while(fgets(buff,NUM,fp) != NULL)
  {
    printf("%s",buff);
  }

  fclose(fp);
  return 0;
}
